package com.pureut.storage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pureut.storage.domain.PickingSaleDetail;
import com.pureut.storage.dto.NewPickingSaleDetailDto;
import com.pureut.storage.dto.PickingSaleDto;
import com.sale.common.mybatis.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * TODO
 *
 * @Description 其他出库Mapper
 * @Author 18741
 * @Date 2023/8/8 13:51
 **/
@Mapper
public interface PickingSaleDetailMapper extends BaseMapperPlus<PickingSaleDetailMapper,PickingSaleDetail,PickingSaleDetail> {

    /**
     * 销售发货明细查询列表
     */
    Page<NewPickingSaleDetailDto> getPickDetailList(@Param("page") Page<NewPickingSaleDetailDto> page, @Param("docNum")String docNum);

    /**
     * 销售发货。根据关联单号查出当前代交接的总重量
     * @param inputValue
     * @return
     */
    Double getDoc(@Param("inputValue") String inputValue);

    /**
     * 销售发货，根据批次号查询出当前待交接的总重量
     * @param inputValue
     * @return
     */
    Double getPiHao(@Param("inputValue") String inputValue);
}
